# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=mkbrutus
pkgver=27.ddd5f8e
pkgrel=5
groups=('blackarch' 'blackarch-cracker')
pkgdesc='Password bruteforcer for MikroTik devices or boxes running RouterOS.'
url='http://mkbrutusproject.github.io/MKBRUTUS/'
arch=('any')
license=('GPL3')
depends=('python3')
makedepends=('git')
source=("$pkgname::git+https://github.com/mkbrutusproject/MKBRUTUS.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" agpl.txt LICENSE
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md CHANGELOG
}

